package edu.biwu.service.impl;

import edu.biwu.dao.AccountDao;
import edu.biwu.po.Account;
import edu.biwu.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 王俊彪
 * @version 1.0
 */
@Service("accountServiceImpl")
public class AccountServiceImpl implements AccountService {
    @Autowired
    AccountDao accountDao;
    @Override
    public void transferAccounts(Account transferInAccount, Account transferOUtAccount) {
        accountDao.updateAccount(transferInAccount);
//        int i = 1/0;
        accountDao.updateAccount(transferOUtAccount);
    }
}
